package com.zsc.shixun.model.authority;

import com.zsc.shixun.entity.Role;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/6/22
 */
@Service
@Mapper(componentModel = "spring")
public interface RoleMapping {
    /**
     * @param role
     * @return
     */
    RoleVO entityToVo(Role role);

    /**
     * @param roleList
     * @return
     */
    List<RoleVO> entitysToVos(List<Role> roleList);
}
